Nevron Open Vision Documentation
Nevron.Nov Namespace / NAggregatePromise Class / Race Method / Race(INPromise[]) Method


In This Topic
    Race(INPromise[]) Method
    In This Topic
    The Race method returns a promise that fulfills or rejects as soon as one of the promises fulfills or rejects, with the value or reason from that promise.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Race( _
       ByVal ParamArray promises() As INPromise _
    ) As NPromise(Of Object)
    'Usage
     
    
    Dim promises() As INPromise
    Dim value As NPromise(Of Object)
     
    value = NAggregatePromise.Race(promises)
    public static NPromise<object> Race( 
       params INPromise[] promises
    )

    Parameters

    promises
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also